package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.PersistenceStrategyStatisVO;
import cn.wolfcode.luowowo.article.domain.StrategyContent;
import cn.wolfcode.luowowo.article.domain.StrategyDetail;
import cn.wolfcode.luowowo.common.query.StrategyDetailQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyDetailService {
    /**
     * 查询列表
     * @param qo
     * @return
     */
    PageInfo query(StrategyDetailQueryObject qo);

    void deleteById(Long id);

    void saveOrUpdate(StrategyDetail strategyDetail,String tags);

    /**
     * 改变攻略明细的状态
     * @param state
     * @param id
     */
    void changeState(int state, Long id);

    StrategyDetail getById(Long id);

    List<StrategyDetail> getDetailsByDestId(Long id);

    StrategyContent getContentById(Long id);

    List<StrategyDetail> listAll();


    void updateStatisData(PersistenceStrategyStatisVO psvo);

}
